package main

import (
	"fmt"
)

func Motify(users map[string]map[string]string,name string){
	
	if users[name]!=nil{
		users[name]["psd"]="888888"
	}else{
		users[name]=make(map[string]string,2)
		users[name]["pwd"]="888888"
		users[name]["nikename"]="昵称"+name
	}
}

func main(){
	users := make(map[string]map[string]string)
	Motify(users,"tom") 
	Motify(users,"mary") 
	fmt.Println(users)
}

